<%include file="include/head.html"%>
<script type="text/javascript" charset="utf-8" 
   src="http://fusion.qq.com/fusion_loader?appid=<%$APP_ID%>&platform=<%$session.pf%>">
</script>
<script type="text/javascript" charset="utf-8" >
// select photo from qq album
fusion2.dialog.selectPhoto
({
    onSuccess : function (opt) {
        var photos = [];
        for(var i=0; i<opt.data.photos.length; i++)
        {
            photos.push(opt.data.photos[i].url);
	    
        }

	// insert into my album
	$.ajax({
	    type: "POST",
	    url: "/users/insert_photo_url", 
	    data: {user_id: <%$user.id%>, photos:photos.join(";")},
	    dataType: "json",
	    success: function(data, state)
	    {
		window.location.href = "/users/insert_photo_complete?userid=<%$user.id%>&success="+data.resp_id;
	    },
 	    error: function()
	    {
		window.location.href = "/users/insert_photo_complete?userid=<%$user.id%>&success=1";
		
	    }
	});
},
onCancel : function () {  },
	 onClose : function () {  }
});
</script>
<div class="wrapper">
  <div id="div-home" class="main-info-box">
    <%include file="include/crumbs.html"%>
    <%include file="include/edit_nav.html"%>   
    <div class="div-info-body">
        <dl>
            <dt>人物：</dt>
            <dd><%$user.realname%></dd>
        </dl>
	</div>
</div>
<%include file="include/bottom.html"%>

